package com.binvshe.binvshe.mine;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.binvshe.binvshe.R;
import com.binvshe.binvshe.account.utils.FragmentUtils;
import com.pachong.android.baseuicomponent.activity.BaseActivity;

public class CoinDetailActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        CoinDetailFragment coinDetailFragment = new CoinDetailFragment();
        FragmentUtils.replaceFragment(getSupportFragmentManager(), R.id.fl_coin, coinDetailFragment);
        initToolBar();
    }

    private void initToolBar() {
        setTitle("查看明细");
        getCustomToolbar().addLeftImageButton(R.mipmap.icon_back_coin, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
    public static void start(Activity activity){
        Intent intent = new Intent(activity, CoinDetailActivity.class);
        activity.startActivity(intent);
    }

    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        return inflater.inflate(R.layout.activity_coin_detail,null);
    }

}
